import axios from '@/utils/axios'
const markRecordListApi = '/alipay/lite/servicer/recordList'
const refreshAlipayLiteApi = '/alipay/lite/servicer/refresh'
const alipayApplyApi = '/alipay/lite/servicer/apply'
const alipayImgUploadApi = '/alipay/lite/servicer/upload'
/**
 * @desc 获取蓝海活动列表
 */
export const markRecordList = ({ data }) => {
  return axios.post(markRecordListApi, data)
}

/**
 * @desc 获取蓝海活动列表
 */
export const refreshAlipayLite = ({ params }) => {
  return axios({
    url: refreshAlipayLiteApi,
    method: 'get',
    params: params
  })
}

/**
 * @desc 新增蓝海活动
 */
export const alipayApply = ({ data }) => {
  return axios.post(alipayApplyApi, data)
}

/**
 * @desc 报名特有图片上传
 */
// export const alipayImgUpload = ({ data }) => {
//   return axios.get(alipayImgUploadApi, data)
// }

export const alipayImgUpload = ({ data }) => {
  return axios({
    url: alipayImgUploadApi,
    method: 'post',
    data: data
  })
}
